<script setup>
const props = defineProps({
  image: {
    type: String,
    required: true,
  },
});
</script>

<template>
  <div class="pan-item">
    <div :style="{ backgroundImage: `url(${image})` }" class="pan-thumb"></div>
  </div>
</template>

<style scoped lang="scss">
.pan-item {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pan-thumb {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  border-radius: 50%;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.pan-item:hover .pan-thumb {
  cursor: pointer;
  opacity: 0.8; /* Adjust the opacity on hover as needed */
}
</style>
